![]() |
WOLF core
WOLF: A Modular Estimation Framework for Robotics
|
Motion model of a fixed wing aircraft: it emplaces a FactorVelocityLocalDirection3d in each keyframe. More...
#include <core/processor/processor_fixed_wing_model.h>
Public Member Functions | |
| ProcessorFixedWingModel (const YAML::Node &_params) | |
| Constructor from YAML parameters. More... | |
| WOLF_PROCESSOR_CREATE (ProcessorFixedWingModel) | |
| virtual | ~ProcessorFixedWingModel () override |
| void | configure (SensorBasePtr _sensor) override |
| Configures the processor once linked to its sensor. More... | |
Public Member Functions inherited from wolf::ProcessorBase | |
| void | startCaptureProfiling () |
| Starts the profiling of a capture processing. More... | |
| void | stopCaptureProfiling () |
| Stops the profiling of a capture processing. More... | |
| void | startKFProfiling () |
| Starts the profiling of a keyframe processing. More... | |
| void | stopKFProfiling () |
| Stops the profiling of a keyframe processing. More... | |
| virtual void | printProfiling (std::ostream &stream=std::cout) const |
| Prints the profiling of the capture and keyframe processing. More... | |
| ProcessorBase (const std::string &_type, const TypeComposite &_state_types, const YAML::Node &_params) | |
| Constructor. More... | |
| ~ProcessorBase () override | |
| virtual void | configure (SensorBasePtr _sensor)=0 |
| Configures the processor once linked to its sensor. More... | |
| virtual void | remove () |
| Removes the processor from its sensor (and from the motion providers of the problem) More... | |
| bool | hasChildren () const override |
| Returns whether the node has children in the Wolf tree. More... | |
| const TypeComposite & | getStateTypes () const |
| Returns the state types of the frames created or used by this processor. More... | |
| StateKeys | getStateKeys () const |
| Returns the state keys of the frames created or used by this processor. More... | |
| unsigned int | id () const |
| Returns the processor id. More... | |
| void | keyFrameCallback (FrameBasePtr _keyframe) |
| Notifies a new keyframe (created by another processor) More... | |
| void | captureCallback (CaptureBasePtr _capture) |
| Notifies a new capture. More... | |
| SensorBaseConstPtr | getSensor () const |
| Returns the sensor the processor belongs to. More... | |
| SensorBasePtr | getSensor () |
| Returns the sensor the processor belongs to. More... | |
| YAML::Node | getParams () const |
| Returns a copy of the YAML parameters. More... | |
| bool | isMotionProvider () const |
| Returns whether the processor is a MotionProvider. More... | |
| bool | applyLossFunction () const |
| Returns whether the factors created by the processor apply a loss function. More... | |
| bool | isVotingActive () const |
| Returns whether the processor can vote for keyframes. More... | |
| double | getTimeTolerance () const |
| Returns the time tolerance to associate time stamps. More... | |
| void | setApplyLossFunction (bool _apply_loss_function) |
| Sets whether the factors created by the processor apply a loss function. More... | |
| void | setVotingActive (bool _voting_active) |
| Sets whether the processor can vote for keyframes. More... | |
| void | setTimeTolerance (double _time_tolerance) |
| Sets the time tolerance to associate time stamps. More... | |
| void | setDebugVerboseLevel (const std::string &_debug_verbose_level) |
| Sets the debug verbosity level: "none", "derived", "base" or "all". More... | |
| std::string | getDebugVerboseLevel () const |
| Returns the debug verbosity level. More... | |
| bool | checkTimeTolerance (const TimeStamp &_ts1, const TimeStamp &_ts2) const |
| Returns whether two time stamps are within the time tolerance. More... | |
| bool | checkTimeTolerance (const CaptureBasePtr _cap, const TimeStamp &_ts) const |
| Returns whether the capture and a time stamp are within the time tolerance. More... | |
| bool | checkTimeTolerance (const FrameBasePtr _frm, const TimeStamp &_ts) const |
| Returns whether the frame and a time stamp are within the time tolerance. More... | |
| bool | checkTimeTolerance (const FrameBasePtr _frm, const CaptureBasePtr _cap) const |
| Returns whether the frame and the capture are within the time tolerance. More... | |
| virtual void | link (SensorBasePtr) final |
| Links the processor to a sensor. More... | |
| virtual void | printHeader (int depth, bool factored_by, bool metric, bool state_blocks, std::ostream &stream, std::string _tabs="") const |
| Prints the information of this node (not of its children) More... | |
| void | print (int depth, bool factored_by, bool metric, bool state_blocks, std::ostream &stream=std::cout, std::string _tabs="") const |
| Prints this node and, depending on the depth, its children. More... | |
| virtual CheckLog | localCheck (bool _verbose, std::ostream &_stream, std::string _tabs="") const |
| Checks the consistency of this node (not of its children) More... | |
| bool | check (CheckLog &_log, bool _verbose, std::ostream &_stream, std::string _tabs="") const |
| Checks the consistency of this node and its children, composing the log. More... | |
Public Member Functions inherited from wolf::NodeBase | |
| NodeBase (const std::string &_category, const std::string &_type="Undefined", const std::string &_name="") | |
| Constructor. More... | |
| virtual | ~NodeBase ()=default |
| Destructor. More... | |
| unsigned int | nodeId () const |
| Returns the node id, unique over the whole Wolf tree. More... | |
| std::string | getCategory () const |
| Returns the category of the node. More... | |
| std::string | getType () const |
| Returns the type (subcategory) of the node. More... | |
| std::string | getName () const |
| Returns the name of the node. More... | |
| bool | isRemoving () const |
| Returns whether the node is being removed. More... | |
| virtual bool | hasChildren () const =0 |
| Returns whether the node has children in the Wolf tree. More... | |
| void | setType (const std::string &_type) |
| Sets the type (subcategory) of the node. More... | |
| void | setName (const std::string &_name) |
| Sets the name of the node. More... | |
| ProblemConstPtr | getProblem () const |
| Returns the problem the node belongs to. More... | |
| ProblemPtr | getProblem () |
| Returns the problem the node belongs to. More... | |
Protected Member Functions | |
| virtual void | processCapture (CaptureBasePtr) override |
| Does nothing: never called (triggerInCapture() returns false) More... | |
| virtual void | processKeyFrame (FrameBasePtr _keyframe_ptr) override |
| Processes an incoming keyframe: emplaces a FactorVelocityLocalDirection3d on its velocity (if it has a non-fixed 'V' state and no factor of this processor yet) More... | |
| virtual bool | triggerInCapture (CaptureBasePtr) const override |
| Returns false: captures are not processed. More... | |
| virtual bool | triggerInKeyFrame (FrameBasePtr _keyframe_ptr) const override |
| Returns true: all keyframes are processed. More... | |
| virtual bool | storeKeyFrame (FrameBasePtr) override |
| Returns false: keyframes are not stored. More... | |
| virtual bool | storeCapture (CaptureBasePtr) override |
| Returns false: captures are not stored. More... | |
| virtual bool | voteForKeyFrame () const override |
| Returns false: it never votes for keyframes. More... | |
Protected Member Functions inherited from wolf::ProcessorBase | |
| virtual void | processCapture (CaptureBasePtr)=0 |
| Processes an incoming capture. More... | |
| virtual void | processKeyFrame (FrameBasePtr _keyframe_ptr)=0 |
| Processes an incoming keyframe. More... | |
| virtual bool | triggerInCapture (CaptureBasePtr) const =0 |
| Returns whether processCapture() should be called after the provided capture arrived. More... | |
| virtual bool | triggerInKeyFrame (FrameBasePtr) const =0 |
| Returns whether processKeyFrame() should be called after the provided keyframe arrived. More... | |
| virtual bool | storeKeyFrame (FrameBasePtr)=0 |
| Returns whether the provided keyframe should be stored in buffer_frame_. More... | |
| virtual bool | storeCapture (CaptureBasePtr)=0 |
| Returns whether the provided capture should be stored in buffer_capture_. More... | |
| virtual bool | voteForKeyFrame () const =0 |
| Votes for keyframe generation. More... | |
| virtual bool | permittedKeyFrame () const final |
| Returns whether this processor can create a keyframe: voting is active and the problem permits it. More... | |
| void | setProblem (ProblemPtr) override |
| Sets the problem, adding the state types to it and, if it is a state provider, the processor as motion provider. More... | |
| void | addTypes (const TypeComposite &) |
| Adds the provided state types to the processor and to the problem (if set). Throws if a key already has a different type. More... | |
| virtual void | setProblem (ProblemPtr _prob_ptr) |
| Sets the problem the node belongs to. More... | |
Protected Attributes | |
| Eigen::Vector3d | velocity_local_ |
| Expected direction of the velocity in the local frame. More... | |
| double | angle_stdev_ |
| Standard deviation of the velocity direction angles. More... | |
| double | min_vel_norm_ |
| Minimum velocity norm, below which the factor has no effect. More... | |
Protected Attributes inherited from wolf::ProcessorBase | |
| unsigned int | processor_id_ |
| Processor id, unique among processors. More... | |
| YAML::Node | params_ |
| YAML parameters. More... | |
| BufferFrame | buffer_frame_ |
| Buffer of the received keyframes to be processed. More... | |
| BufferCapture | buffer_capture_ |
| Buffer of the received captures to be processed. More... | |
| std::string | debug_verbose_level_ |
| Debug verbosity level: "none", "derived", "base" or "all". More... | |
Protected Attributes inherited from wolf::NodeBase | |
| ProblemWPtr | problem_ptr_ |
| Problem the node belongs to. More... | |
| unsigned int | node_id_ |
| Node id. It is unique over the whole Wolf Tree. More... | |
| std::string | node_category_ |
| Text label identifying the category of node ("SENSOR", "FEATURE", etc) More... | |
| std::string | node_type_ |
| Type or subcategory of node (derived class name: "SensorOdom2d", etc) More... | |
| std::string | node_name_ |
| bool | is_removing_ |
| A flag for safely removing nodes from the Wolf tree. See remove(). More... | |
Motion model of a fixed wing aircraft: it emplaces a FactorVelocityLocalDirection3d in each keyframe.
| wolf::ProcessorFixedWingModel::ProcessorFixedWingModel | ( | const YAML::Node & | _params | ) |
Constructor from YAML parameters.
|
overridevirtual |
|
overridevirtual |
Configures the processor once linked to its sensor.
Implements wolf::ProcessorBase.
|
inlineoverrideprotectedvirtual |
Does nothing: never called (triggerInCapture() returns false)
Implements wolf::ProcessorBase.
|
overrideprotectedvirtual |
Processes an incoming keyframe: emplaces a FactorVelocityLocalDirection3d on its velocity (if it has a non-fixed 'V' state and no factor of this processor yet)
Implements wolf::ProcessorBase.
|
inlineoverrideprotectedvirtual |
Returns false: captures are not stored.
Implements wolf::ProcessorBase.
|
inlineoverrideprotectedvirtual |
Returns false: keyframes are not stored.
Implements wolf::ProcessorBase.
|
inlineoverrideprotectedvirtual |
Returns false: captures are not processed.
Implements wolf::ProcessorBase.
|
inlineoverrideprotectedvirtual |
Returns true: all keyframes are processed.
Implements wolf::ProcessorBase.
|
inlineoverrideprotectedvirtual |
Returns false: it never votes for keyframes.
Implements wolf::ProcessorBase.
| wolf::ProcessorFixedWingModel::WOLF_PROCESSOR_CREATE | ( | ProcessorFixedWingModel | ) |
|
protected |
Standard deviation of the velocity direction angles.
|
protected |
Minimum velocity norm, below which the factor has no effect.
|
protected |
Expected direction of the velocity in the local frame.